/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author Jason Sorbello
 */
class Connect extends Thread {

    private ServerSocket client = null;
    private ObjectOutputStream oos = null;

    public Connect(ServerSocket clientSocket) {
        client = clientSocket;
         try {
            oos = new ObjectOutputStream(client.getOutputStream());
        } catch (Exception ex) {
            try {
                client.close();
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
            return;
        }
        this.start();
    }
}
